import Vue from "vue";
import AppActionSheet from "@/components/app-action-sheet/app-action-sheet.vue";

const ActionSheet=(props:any) => {
    let component = AppActionSheet;
    const vm = new Vue({
        render(h) {
            return h(component, { props });
        }
    }).$mount();
    document.body.appendChild(vm.$el);
    // 给组件实例添加销毁方法
    const comp:any = vm.$children[0];
    return comp;
}

export default ActionSheet;